package com.un.ebs.order.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import org.springframework.stereotype.Component;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author liubo
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Component
@TableName("tb_order_item")
public class OrderItem extends Model<OrderItem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    private String orderId;

    private String providerEntId;

    private String skuId;

    private Double qty;

    private Double price;

    private Date startTime;

    private Date endTime;

    private Boolean deliverStatus;

    private Date deliverTime;

    private String deliverUserId;

    private String deliverUserName;

    private Long code;

    private String remark;

    private Integer deliverType;

    private String skuItemId;

    private String skuItemParentId;

    private Double discountMoney;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}